package bean;

import sf.tools.reflectasm.MethodAccess;

public class SimpleBeanMethodAccess extends MethodAccess
{
    public Object invoke(final Object o, final int n, final Object... array) {
        final SimpleBean simpleBean = (SimpleBean)o;
        switch (n) {
            case 0: {
                SimpleBean.main((String[])array[0]);
                return null;
            }
            case 1: {
                return simpleBean.getName();
            }
            case 2: {
                return simpleBean.push((String)array[0], (Object)array[1]);
            }
            case 3: {
                simpleBean.setName((String)array[0]);
                return null;
            }
            case 4: {
                return simpleBean.pull((String)array[0]);
            }
            case 5: {
                return simpleBean.getAge();
            }
            case 6: {
                simpleBean.setCb((ComBean)array[0]);
                return null;
            }
            case 7: {
                return simpleBean.getCb();
            }
            case 8: {
                simpleBean.setAge((int)array[0]);
                return null;
            }
            default: {
                throw new IllegalArgumentException("Method not found: " + n);
            }
        }
    }
}
